<template>
	<view class="setting-container">
		<view class="setting-item" @click="toModifyMobile">
			<text class="item-text">修改手机号码</text>
			<image class="arrow-icon" src="/static/svg/right-arrow.svg" mode="aspectFit"></image>
		</view>
		
		<view class="setting-item" @click="toFAQ">
			<text class="item-text">常见问题</text>
			<image class="arrow-icon" src="/static/svg/right-arrow.svg" mode="aspectFit"></image>
		</view>
		
		<view class="setting-item" @click="toFeedback">
			<text class="item-text">意见反馈</text>
			<image class="arrow-icon" src="/static/svg/right-arrow.svg" mode="aspectFit"></image>
		</view>
	</view>
</template>

<script setup>
	const toModifyMobile = () => {
		uni.navigateTo({
			url: '/pages/my/setting/phone'
		});
	}
	
	const toFAQ = () => {
		uni.navigateTo({
			url: '/pages/my/setting/qa'
		});
	}
	
	const toFeedback = () => {
		uni.navigateTo({
			url: '/pages/my/setting/feedback'
		});
	}
</script>

<style>
	.setting-container {
		background-color: #f5f5f5;
		min-height: 100vh;
	}
	
	.setting-item {
		display: flex;
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
		padding: 30rpx;
		background-color: #FFFFFF;
		margin-bottom: 2rpx;
	}
	
	.item-text {
		font-size: 32rpx;
		color: #333333;
	}
	
	.arrow-icon {
		width: 40rpx;
		height: 40rpx;
	}
</style>
